﻿using System;
using System.Collections.Generic;
using System.Web;

namespace NhanAi.Entity
{
    public class Post
    {
        #region fields
        int id;
        int authorId;
        DateTime postDate;
        string content;
        string contentEn;
        string title;
        string titleEn;
        string excerpt;
        string excerptEn;
        int status;
        DateTime modifiedDate;
        int parentId;
        string guid;
        string name;
        int menuOrder;
        string postType;
        int commentCount;
        bool isProtected;
        int postAttribute;
        int viewCount;

        List<Comment> comments;
        User user;
        List<Taxonomy> taxonomies;
        #endregion

        public int Id { get{return id;} set{id=value;} }
        public int AuthorId { get{return authorId;} set{authorId=value;} }
        public DateTime PostDate { get{return postDate;} set{postDate=value;} }
        public string Content { get{return content;} set{content=value;} }
        public string ContentEn { get{return contentEn;} set{contentEn=value;} }
        public string Title { get{return title;} set{title=value;} }
        public string TitleEn { get{return titleEn;} set{titleEn=value;} }
        public string Excerpt { get{return excerpt;} set{excerpt=value;} }
        public string ExcerptEn { get{return excerptEn;} set{excerptEn=value;} }
        public int Status { get{return status;} set{status=value;} }
        public DateTime ModifiedDate { get{return modifiedDate;} set{modifiedDate=value;} }
        public int ParentId { get{return parentId;} set{parentId=value;} }
        public string Guid { get{return guid;} set{guid=value;} }
        public string Name { get { return name; } set { name = value; } }
        public int MenuOrder { get{return menuOrder;} set{menuOrder=value;} }
        public string PostType { get{return postType;} set{postType=value;} }
        public int CommentCount { get{return commentCount;} set{commentCount=value;} }
        public bool Protected { get { return isProtected; } set { isProtected = value; } }
        public int PostAttribute { get { return postAttribute; } set { postAttribute = value; } }
        public int ViewCount { get { return viewCount; } set { viewCount = value; } }
        //references
        public List<Comment> Comments { get { return comments; } set { comments = value; } }
        public User User { get { return user; } set { user = value; } }
        public List<Taxonomy> Taxonomies { get { return taxonomies; } set { taxonomies = value; } }
    }
}